package com.acme.logging;

import java.util.logging.Filter;
import java.util.logging.Level;
import java.util.logging.LogRecord;

/**
 * This class represents logging filter
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class MyFilter implements Filter{

    @Override
    public boolean isLoggable(LogRecord record) {
        Level level = record.getLevel();
        if ((level == Level.INFO)   ||
            (level == Level.SEVERE) ||
            (level == Level.WARNING)) {
            return true;
        }
        return false;
    }
}
